/*    */ package system.staros.sblock1;
/*    */ 
/*    */ public class ArrayPushFunction extends Function
/*    */ {
/* 31 */   private String[] parameters = { "array", "element" };
/*    */ 
/*    */   public ZemObject eval(Interpreter paramInterpreter, SourcePosition paramSourcePosition)
/*    */   {
/* 35 */     ZemArray localZemArray = (ZemArray)paramInterpreter.getVariable("array", paramSourcePosition);
/* 36 */     localZemArray.push(paramInterpreter.getVariable("element", paramSourcePosition));
/* 37 */     return localZemArray;
/*    */   }
/*    */ 
/*    */   public ZemObject getDefaultValue(int paramInt)
/*    */   {
/* 42 */     return null;
/*    */   }
/*    */ 
/*    */   public int getParameterCount()
/*    */   {
/* 47 */     return 2;
/*    */   }
/*    */ 
/*    */   public String getParameterName(int paramInt)
/*    */   {
/* 52 */     return this.parameters[paramInt];
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.sblock1.ArrayPushFunction
 * JD-Core Version:    0.6.1
 */